package com.hu.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hu.common.annotation.Excel;
import com.hu.common.core.domain.BaseEntity;

/**
 * 退货入库对象 stock_return
 *
 * @author hu
 * @date 2025-01-22
 */
public class StockReturn extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 退货入库ID
     */
    private Long returnId;

    /**
     * 关联的出库记录ID
     */
    @Excel(name = "关联出库ID")
    private Long sourceOutboundId;

    /**
     * SKU编码
     */
    @Excel(name = "SKU编码")
    private String sku;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String productName;

    /**
     * SKU属性（非数据库字段，从product_info关联查询）
     */
    @Excel(name = "SKU属性")
    private String skuAttr;

    /**
     * SKU货号（非数据库字段，从product_info关联查询）
     */
    @Excel(name = "SKU货号")
    private String skuCode;

    /**
     * 所属店铺ID
     */
    private Long shopId;

    /**
     * 退货数量
     */
    @Excel(name = "退货数量")
    private Integer returnQuantity;

    /**
     * 退货日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "退货日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date returnDate;

    /**
     * 删除标志
     */
    private String delFlag;

    /**
     * 店铺名称（非数据库字段）
     */
    private String shopName;

    /**
     * 原出库数量（非数据库字段）
     */
    private Integer originalOutboundQuantity;

    /**
     * 原出库日期（非数据库字段）
     */
    private Date originalOutboundDate;

    // Getters and Setters
    public Long getReturnId() {
        return returnId;
    }

    public void setReturnId(Long returnId) {
        this.returnId = returnId;
    }

    public Long getSourceOutboundId() {
        return sourceOutboundId;
    }

    public void setSourceOutboundId(Long sourceOutboundId) {
        this.sourceOutboundId = sourceOutboundId;
    }

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getSkuAttr() {
        return skuAttr;
    }

    public void setSkuAttr(String skuAttr) {
        this.skuAttr = skuAttr;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Integer getReturnQuantity() {
        return returnQuantity;
    }

    public void setReturnQuantity(Integer returnQuantity) {
        this.returnQuantity = returnQuantity;
    }

    public Date getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(Date returnDate) {
        this.returnDate = returnDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public Integer getOriginalOutboundQuantity() {
        return originalOutboundQuantity;
    }

    public void setOriginalOutboundQuantity(Integer originalOutboundQuantity) {
        this.originalOutboundQuantity = originalOutboundQuantity;
    }

    public Date getOriginalOutboundDate() {
        return originalOutboundDate;
    }

    public void setOriginalOutboundDate(Date originalOutboundDate) {
        this.originalOutboundDate = originalOutboundDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("returnId", getReturnId())
                .append("sourceOutboundId", getSourceOutboundId())
                .append("sku", getSku())
                .append("productName", getProductName())
                .append("skuAttr", getSkuAttr())
                .append("skuCode", getSkuCode())
                .append("shopId", getShopId())
                .append("returnQuantity", getReturnQuantity())
                .append("returnDate", getReturnDate())
                .append("remark", getRemark())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}

